<?php
  $string = "weekend php for php";

  /*
   * String Length
   * */
  $strLen = strlen($string);
  echo "The length of string is $strLen";
  echo "\n\n------------\n\n";
  var_dump($string);
  echo "\n\n------------\n\n";

  /*
   * Replace php with zend
   * */
  $newString =
  str_replace('php','zend',$string,$simu);
  var_dump($simu);

  echo "After replace 'php' with 'zend' \n\n string is => $newString";
  echo "\n\n------------\n\n";

  /*
   * Check 'week' is present in that string
   * */
    $string = "weekend php";
    $pos = strpos($string, 'week');
    var_dump($pos);
    if($pos !== false){
      echo "Success :)";
    } else {
      echo "Fail :(";
    }
    echo "\n\n------------\n\n";

    //var_dump(0 == false);
    //var_dump(0 === false);
    //var_dump(11 == '11');
    //var_dump(11 === '11');




